<template>
  <div>
    <div class="town_top">
      <div class="top_left" style="cursor: pointer;" @click="gohome">
        <img src="@/assets/img/townPreview/回到首页.png" alt="">
        <span>回到首页</span>
      </div>
      <div class="title">一屏智控-全区收支总览</div>
      <div class="top_right">
        <img src="@/assets/img/townPreview/定位.png" alt="">
        <span>浙江省-绍兴市-柯桥区</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {

  data() {
    return {
      title: ''
    };
  },
  created() {
    this.title = this.$route.query.ENTERPRISENAME;
  },
  methods: {
    gohome() {
      this.$router.push('/');
    }
  }

};
</script>

<style lang="scss" scoped>
.town_top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  .top_left {
    border: 1px solid #1fd2ff;
    border-radius: 9px;
    padding: 5px 25px;
    img {
      vertical-align: middle;
    }
    span {
      color: #1fd2ff;
      display: inline-block;
      vertical-align: middle;
      font-size: 14px;
    }
  }
  .title{
    color: #1fd2ff;
    font-size: 32px;
    font-weight: bolder;
  }
  .top_right {
    margin-left: 14px;
    vertical-align: middle;

    span {
      color: #1fd2ff;
      font-size: 18px;
      display: inline-block;
      vertical-align: middle;
    }
  }
}

</style>
